/*
 * Copyright (c) 2006, 2022, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

/**
 * <p>Project: app2022 - O2
 * <p>Powered by webrx On 2022-01-10 11:18:55
 *
* @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class O2 {
    //属性 成员 变量 静态常量  常量
    static int y = 200;
    static int x;
    final static double MM = .28;
    public static void main(String[] args) {
        System.out.println(MM);
        //01 实例化就可以使用
        //var a = new O2();
        //System.out.println(a.y);
        //a.show();

        //02 设置为static
        System.out.println(y);
        show();

        System.out.println(x);
        {
            int z=6;
        }

        {
            double z = .9;
        }



        User.i = 100;
        System.out.println(User.i);
        var o = new User();
        System.out.println(o.name);

        var ls = new User();
        ls.i = 22;

        System.out.println(o.i);
    }

    static void show(){
        System.out.println("O2.show()");
    }
}
